﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace pytator {
	/// <summary>
	/// kontrolka wyboru testu i trybu testu
	/// </summary>
	public partial class ModeSelectionControl : UserControl {
		public delegate void ed ();
		/// <summary>
		/// zdarzenie kliknięcia przycisku ok
		/// </summary>
		public event ed okClick;
		public bool testRadioChecked {
			get { return this.testRadio.Checked; }
		}
		public bool naukaRadioChecked {
			get { return this.naukaRadio.Checked; }
		}
		public string testPath {
			get { return this.openTestDialog1.FileName; }
		}
		public ModeSelectionControl() {
			InitializeComponent();
		}
		private void button2_Click(object sender, EventArgs e) {
			okClick();
		}
		private void browseButton_Click(object sender, EventArgs e) {
			openTestDialog1.ShowDialog();
		}
		private void openTestDialog1_FileOk(object sender, CancelEventArgs e) {
			pathTextBox.Text = openTestDialog1.SafeFileName;
		}
	}
}
